package com.zzh.main;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

/**
 * Created by ZZH on 4/20/21.
 *
 * @Date: 4/20/21
 * @Email: zzh_hz@126.com
 * @QQ: 1299234582
 * @Author: zzh
 * @Description:
 */
@Table(name = "cim_user")
public class CIMUserModel {
    @Column(name = "id", isId = true, autoGen = true)
    public Long id;
    @Column(name = "user_name")
    public String userName;
    @Column(name = "user_pass")
    public String password;
    @Column(name = "target_id")
    public String targetId;
    @Column(name = "age")
    public int age;
    @Column(name = "create_time")
    public Long createTime;
    @Column(name = "extra")
    public String extra;


    public CIMUserModel(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public CIMUserModel() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName == null ? "" : userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password == null ? "" : password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTargetId() {
        return targetId == null ? "" : targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getExtra() {
        return extra == null ? "" : extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }
}
